#! /usr/bin/env python3

import RPi.GPIO as GPIO
import time

channel = 88

GPIO.setmode(GPIO.BCM)
# GPIO.setwarnings(False)

print(f"GPIO mode: {GPIO.getmode()}")

GPIO.setup(channel, GPIO.OUT)
print("Blinking LED")

try:
    while True:
        GPIO.output(channel, GPIO.HIGH)
        time.sleep(1)
        GPIO.output(channel, GPIO.LOW)
        time.sleep(1)
except KeyboardInterrupt:
    print("Exiting...")
finally:
    GPIO.cleanup()
